package cn.edu.scau.cmi.ema.client;

import cn.edu.scau.cmi.ema.configuration.MainConfiguration;
import cn.edu.scau.cmi.ema.domain.NewUser;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

@SpringBootApplication
public class JpaApplication {

    public static void main(String[] args) {
        SpringApplication.run(JpaApplication.class, args);

        AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(MainConfiguration.class);
        NewUser registerController = ac.getBean(NewUser.class);
        System.out.println(registerController.getName());
    }
}
